package com.gitee.wsl.ext.list

import com.gitee.wsl.ext.collection.mapToMutableList

fun <T> List<T>.encapsulate(): List<List<T>> = map { listOf(it) }
fun <T> List<T>.encapsulateToMutableList(): MutableList<MutableList<T>> = mapToMutableList { mutableListOf(it) }
